about dialog: Use gtk_show_uri_on_window
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jul 2016 12:04:13 +0000 (08:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jul 2016 04:07:11 +0000 (00:07 -0400)
This allows us to handle things slightly better in
the portal case.

https://bugzilla.gnome.org/show_bug.cgi?id=768499

gtk/gtkaboutdialog.c

index d4187fa459b18e85819175cb68ce78b57ce2dd89..45ac2899edbecb18f96a7141f9b699f73b38d7b5 100644 (file)
@@ -982,12 +982,9 @@ static gboolean
 gtk_about_dialog_activate_link (GtkAboutDialog *about,
                                 const gchar    *uri)
 {
-  GdkScreen *screen;
   GError *error = NULL;
 
-  screen = gtk_widget_get_screen (GTK_WIDGET (about));
-
-  if (!gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error))
+  if (!gtk_show_uri_on_window (GTK_WINDOW (about), uri, gtk_get_current_event_time (), &error))
     {
       GtkWidget *dialog;